package us.icitap.cm.ui.custom;

import com.vaadin.ui.themes.Runo;

public class CustLayoutWithMenu extends CustVerticalLayout{

	
	private final CustHorizontalLayout menuLayout = new CustHorizontalLayout();
	
	
	public CustLayoutWithMenu() {
		super();
		
		this.addComponent(menuLayout);
		menuLayout.setStyleName("adamMenu");
	}

	
	public void addMenu(CustButton button){
		button.setStyleName(Runo.BUTTON_SMALL);
		this.menuLayout.addComponent(button);
		
	}
	

	public void removeAllComponents(){
		super.removeAllComponents();
		this.addComponent(menuLayout);
	}
}
